#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#define max_name 20
#define max_sex 5
#define max_tel 12
#define max_addr 30
#define DEFAULT_SZ 3
void menu()
{
	printf("**********************\n");
	printf("****1.add     2.del***\n");
	printf("****3.search  4.modify\n");
	printf("****5.show    6.sort**\n");
	printf("*********0.exit*******\n");
	printf("**********************\n");
}
typedef struct peoinfo
{
	char name[max_name];
	char sex[max_sex];
	int age;
	char tel[max_tel];
	char address[max_addr];

}peo;
typedef struct contact
{
	struct peoinfo* date;
	int size;
	int capacity;
}con;
void addcontact(struct contact* ps);
void showcontac(const struct contact* ps);
void delcontact(struct contact* ps);
void searcontact(struct contact* ps);
void modicontact(struct contact* ps);
void sortcontact(struct contact* ps);